<div class="zs-body" data-ng-init="
		formInit('cms_comment', {
				keyField:'id',
				randomFields:['id'],
				pageSize:10,
				orderObject:{id:0} 
		}) && loadData('cms_comment');setConHei();setTab('cms_comment', 'sy');">
    <div class="zs-map-tool">
		<div class="location">
			<a >首页</a>
			<i class="right-arr"></i>
			<a >内容管理</a>
			<i class="right-arr"></i>
			<a >评论管理</a>
		</div>
		<div class="option">
			<input type="button" class="zs-btn orange" value="新建" 
				ng-click="addRow('cms_comment') && openWindow('edit');"/>
			<input type="button" class="zs-btn orange" value="编辑" 
				ng-click="editRow('cms_comment', cms_comment.sRows[0]) && openWindow('edit')"/>
			<input type="button" class="zs-btn orange" value="删除 " 
				ng-click="delEntitys('cms_comment')"/>
			
		</div>
	</div>
	
	<div class="zs-content" style="position:unset">
        <!--查询栏-->
        <div class="zs-nice-tab idTabs">
			<div class="tool item" style="margin-left:6px;">
		        <span class="search-warpper">
		            <i class="icon"></i>
		            <input type="text" placeholder="评论" class="zs-input" ng-model="cms_comment.queryObject['content:like']"/>
		        </span>
		    </div>
		    <div class="operation item">
		        <a class="ope-1" ng-click="loadData('cms_comment')"></a>
		        <a class="ope-2" ng-click="resetQuery('cms_comment')"></a>
		    </div>
		    <div class="switch">
		    </div>
		</div>
  
        <div class="zs-itab" style="margin:0px 10px">
			<div class="zs-itab-title">
				<ul class="idTabs">
					<li><a ng-click="setTab('cms_comment', 'sy');"  class="{{tabs['cms_comment'].tabClass['sy']}}">
						所有（<label ng-bind="cms_messageboard.rowsCount"></label>）</a></li>
					<li><a ng-click="setTab('cms_comment', 'wsh');"  class="{{tabs['cms_comment'].tabClass['wsh']}}">
						未审核（<label ng-bind="cms_messageboard_wsh.rowsCount"></label>）</a></li>
					<li><a ng-click="setTab('cms_comment', 'shtg');"  class="{{tabs['cms_comment'].tabClass['shtg']}}">
						审核通过（<label ng-bind="cms_messageboard_shtg.rowsCount"></label>）</a></li>	
					<li><a ng-click="setTab('cms_comment', 'shwtg');"  class="{{tabs['cms_comment'].tabClass['shwtg']}}">
						审核未通过（<label ng-bind="cms_messageboard_shwtg.rowsCount"></label>）</a></li>		
				</ul>
			</div>
		</div>
        <div class="date-container">
            <div id="zpgwd">	
                <div id="sy" class="zs-data-table" ng-show="tabs['cms_comment'].tabClass['sy']">
				    <div class="container">
				    	<table>
				            <thead>
				                <tr>
				                    <th width="5%">
				                    	<input id="allCheckbox" type="checkbox"
				                    		ng-click="selectAll('cms_comment','allCheckbox');">
				                    </th>
				                    <th width="35%">评论</th>
				                    <th width="15%">得分</th>
				                    <th width="15%">审核状态</th>
				                    <th width="15%">评论日期</th>
				                    <th width="15%">国家</th>

				                </tr>
				            </thead>
				            <tbody>
				                <tr ng-repeat="r in cms_comment.datas">
					                <td><input type="checkbox"
						                    ng-click="selectRow('cms_comment',r);"
						                    ng-model="r.selected" />
					                </td>
					                <td>
					                    <a ng-click="editRow('cms_comment',r) && openWindow('edit');">
					                        <label ng-bind="r.content | asLength:20"></label>
					                    </a>
					                </td>
					                <td>
					                    <a ng-click="editRow('cms_comment',r) && openWindow('edit');">
					                        <label ng-bind="r.df"></label>
					                    </a>
					                </td> 
					                <td>
					                    <a ng-click="editRow('cms_comment',r) && openWindow('edit');">
					                        <label ng-bind="r.spzt"></label>
					                    </a>
					                </td>
					                <td>
					                    <a ng-click="editRow('cms_comment',r) && openWindow('edit');">
					                       <label ng-bind="r.fbDate"></label>
					                        
					                    </a>
					                </td>
					                <td>
					                    <a ng-click="editRow('cms_comment',r) && openWindow('edit');">
					                        <label ng-bind="r.fbgj"></label>
					                    </a>
					                </td>
					            </tr>
				            </tbody>
				        </table>
				    </div>
				    <div class="zs-pagination-box">
				        <ag-Page fn='cms_comment'></ag-Page>
				    </div>
				</div>
   
            </div>
        </div>
        
        <div ag-Window id="edit" title="评论编辑" width='1000px' height='650px'>
	        <div class="zs-form-tab ibox">
	        	<form name="form" novalidate>
				    <table width="100%">
				        <tbody>
				        	<tr>
		                        <td class="text" width="20%">*文档</td>
		                        <td class="left" colspan="3" width="80%">
		                            <input type="text"
			                            ng-model="cms_comment.editRow.docid"
			                            class="zs-input" required>
		                       </td>
		                       
		                    </tr>
		                    <tr>
		                        <td class="text" width="20%">用户</td>
		                        <td class="left" width="30%"><input type="text"
		                            ng-model="cms_comment.editRow.username"
		                            class="zs-input" required></td>
		                        <td class="text" width="20%">评论日期</td>
		                        <td class="left" width="30%"><input type="text"
		                            ng-model="cms_comment.editRow.fbDate"
		                            class="zs-input" required></td>
		                    </tr>
		                    <tr>
		                        <td class="text" width="20%">状态</td>
		                        <td class="left" width="30%"><input type="text"
		                            ng-model="cms_comment.editRow.spzt"
		                            class="zs-input" required></td>
		                        <td class="text" width="20%">IP</td>
		                        <td class="left" width="30%"><input type="text"
		                            ng-model="cms_comment.editRow.fbip"
		                            class="zs-input" required></td>
		                    </tr>
		                    <tr>
		                        <td class="text" width="20%">国家</td>
		                        <td class="left" width="30%"><input type="text"
		                            ng-model="cms_comment.editRow.fbgj"
		                            class="zs-input" required></td>
		                        <td class="text" width="20%">地区</td>
		                        <td class="left" width="30%"><input type="text"
		                            ng-model="cms_comment.editRow.fbdq"
		                            class="zs-input" required></td>
		                    </tr>
		                    <tr>
		                        <td class="text" width="20%">得分</td>
		                        <td class="left" width="30%">
			                        <ag-Datebox id='publishDate'  showcurday='true'
		                        		class="zs-input" style="width:350px;height: 28px"
		                        		ng-model="cms_comment.editRow.df"></ag-Datebox>    
			                            
		                        </td>
		                        <td class="text" width="20%">审核日期</td>
		                        <td class="left" width="30%"><input type="text"
		                            ng-model="cms_comment.editRow.spDate"
		                            class="zs-input" required></td>
		                    </tr>
		                    <tr>
		                        <td class="text" width="20%">评论</td>
		                        <td colspan="3" class="left" width="80%">    
									<textarea type="text" rows="3" style="resize:none;height:200px;" 
                                		class="zs-input" ng-model="cms_comment.editRow.content"></textarea>	                        
		                        </td>
		                    </tr>
		                    
				        </tbody>
				        <tfoot>
				            <tr>
				                <td colspan="4">
				                    <input type="button" name="ok" value="保存" class="zs-btn c-red"
				                    	ng-click="formValidate(form) && save('cms_comment', cms_comment.editRow, closeWindow)"/>
				                    <input type="button" name="ok" value="取消" class="zs-btn c-green" 
				                    	ng-click="closeWindow('edit')" />
				                </td>
				            </tr>
				        </tfoot>
				    </table>
				</form>
			</div>
	    </div>
	</div>
</div>
